/*
 * CopyLeft (c) 2001->infinity by Michael U. Bergens for starters.
 *
 *   Long story short: Apache 2.0, no warranty whatsoever, no obligations
 *   of any kind on the part of the authors nor on the part of the consumers of this code.
 */
package org.michael.u.brg.by.sys;

import java.util.LinkedList;
import java.util.List;

/**
 * Short result with a handful of lines put in the list of strings.
 * @author Michael Bergens
 */
public class ExecResultShort extends ExecResult {

    private List<String> outStream = new LinkedList<String>();
    private List<String> errStream = new LinkedList<String>();
    private List<Exception> errors = new LinkedList<Exception>();

    public ExecResultShort() { }

    public List<String> getOutStream() {
        return outStream;
    }

    public List<String> getErrStream() {
        return errStream;
    }

    public List<Exception> getErrors() {
        return errors;
    }

    public void setOutStream(List<String> outStream) {
        this.outStream = outStream;
    }

    public void setErrStream(List<String> errStream) {
        this.errStream = errStream;
    }

    public void setErrors(List<Exception> errors) {
        this.errors = errors;
    }

    @Override
    public String toString() {
        return String.format("{%s}, %nout=%s, %nerr=%s, %nerrors=%s"
            , super.toString(), outStream, errStream, errors);
    }
}
